import request from '@/utils/request'

// 查询答题管理列表
export function listAnswerInfo(query) {
  return request({
    url: '/business/answerInfo/list',
    method: 'get',
    params: query
  })
}

// 查询答题管理详细
export function getAnswerInfo(baseId) {
  return request({
    url: '/business/answerInfo/' + baseId,
    method: 'get'
  })
}

// 新增答题管理
export function addAnswerInfo(data) {
  return request({
    url: '/business/answerInfo',
    method: 'post',
    data: data
  })
}

// 修改答题管理
export function updateAnswerInfo(data) {
  return request({
    url: '/business/answerInfo',
    method: 'put',
    data: data
  })
}

// 删除答题管理
export function delAnswerInfo(baseId) {
  return request({
    url: '/business/answerInfo/' + baseId,
    method: 'delete'
  })
}
//证书上传
export function addCert(data) {
  return request({
    url: '/business/userVideo/cert/add',
    method: 'post',
    data: data
  })
}
// 试卷详情
export function answerPaperEcho(baseId) {
  return request({
    url: '/v1/business/answerPaperEcho/' + baseId,
    method: 'get'
  })
}

// 删除证书
export function deleteCert(certId) {
  return request({
    url: '/business/userVideo/cert/delete/' + certId,
    method: 'delete'
  })
}
